package router

import (
	"SamWaf/api"
	"github.com/gin-gonic/gin"
)

type LogRouter struct {
}

func (receiver *LogRouter) InitLogRouter(group *gin.RouterGroup) {
	logApi := api.APIGroupAPP.WafLogAPi
	wafLogRouter := group.Group("")

	wafLogRouter.POST("/samwaf/waflog/attack/list", logApi.GetListApi)
	wafLogRouter.GET("/samwaf/waflog/attack/export", logApi.ExportDBApi)
	wafLogRouter.GET("/samwaf/waflog/attack/download", logApi.DownloadApi)
	wafLogRouter.GET("/samwaf/waflog/attack/detail", logApi.GetDetailApi)
	wafLogRouter.GET("/samwaf/waflog/attack/allsharedb", logApi.GetAllShareDbApi)
	wafLogRouter.GET("/samwaf/waflog/attack/httpcopymask", logApi.GetHttpCopyMaskApi)
	wafLogRouter.POST("/samwaf/waflog/attack/attackiplist", logApi.GetAttackIPListApi)
	wafLogRouter.GET("/samwaf/waflog/attack/alliptag", logApi.GetAllIpTagApi)
}
